<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%solution_balance}}".
 *
 * @property integer $id
 * @property integer $solution_id
 * @property string $cost_from_log
 * @property string $cost_yesterday
 * @property string $cost_today
 * @property string $cost_before_edit
 * @property string $balance
 * @property integer $hours
 * @property integer $burn_hours
 * @property integer $is_edited
 * @property string $last_update
 */
class SolutionBalance extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%solution_balance}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['solution_id'], 'required'],
            [['solution_id', 'hours', 'burn_hours', 'is_edited'], 'integer'],
            [['cost_from_log', 'cost_yesterday', 'cost_today', 'cost_before_edit', 'balance'], 'number'],
            [['last_update'], 'safe']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'solution_id' => 'Solution ID',
            'cost_from_log' => 'Cost From Log',
            'cost_yesterday' => 'Cost Yesterday',
            'cost_today' => 'Cost Today',
            'cost_before_edit' => 'Cost Before Edit',
            'balance' => 'Balance',
            'hours' => 'Hours',
            'burn_hours' => 'Burn Hours',
            'is_edited' => 'Is Edited',
            'last_update' => 'Last Update',
        ];
    }
}
